-- GENERATED SPELL FOR [Demented Druid Spirit] --


function spell0_15260(pUnit, Event) --@Moonfire,n/a--
pUnit:FullCastSpellOnTarget(24957,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15260', 12000, 1)
end

function spell1_15260(pUnit, Event) --@Silence,n/a--
pUnit:FullCastSpellOnTarget(6726,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15260', 5271, 1)
end

function Sorts_15260(pUnit, Event)
local choix_sorts_15260 = math.random(0, 1)
if choix_sorts_15260 == 0 then
pUnit:RegisterEvent('spell0_15260', 1, 1)
end
if choix_sorts_15260 == 1 then
pUnit:RegisterEvent('spell1_15260', 1, 1)
end
end

function mob15260_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15260', math.random(1500, 3000), 1)
end

function mob15260_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15260_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15260_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15260, 1, 'mob15260_Action')
RegisterUnitEvent(15260, 2, 'mob15260_Leave')
RegisterUnitEvent(15260, 3, 'mob15260_Kill')
RegisterUnitEvent(15260, 4, 'mob15260_Die')
